<?php
class CustomValidator extends Illuminate\Validation\Validator {
    public function validateLogin($attribute, $value, $parameters){
        if(Custools::checkEmail($value) || Custools::checkCell($value) || Custools::checkLoginname($value)){
        	return true;
        }
        return false;
    }
} 